package com.zz.reflection;

import com.zz.Interface.studentMannger.ClassManager;

//目标：获取class对象
public class Test1Class {
    public static void main(String args[]) throws ClassNotFoundException {
        Class c1 = Student.class;//获取Class对象 --字节码
        System.out.println(c1.getName());//全类名
        System.out.println(c1.getSimpleName());//简名：Student

        Class c2 = Class.forName("com.zz.reflection.Student");
        System.out.println(c2 == c1);

        Student s = new Student();
        Class c3 = s.getClass();
        System.out.println(c3 == c2);
    }
}
